import request from '@/utils/request'

export function getOrganizationTree() {
  return request({
    url: '/api/organizationManage/organization/getOrganizationTree',
    method: 'post'
  })
}
export function getOrganizationList() {
  return request({
    url: '/api/organizationManage/organization/getOrganizationList',
    method: 'post'
  })
}
export function getOrganizationDetail(params) {
  return request({
    url: '/api/organizationManage/organization/getOrganizationDetail',
    method: 'post',
    params
  })
}
export function addOrganization(data) {
  return request({
    url: '/api/organizationManage/organization/addOrganization',
    method: 'post',
    data
  })
}
export function updateOrganization(data) {
  return request({
    url: '/api/organizationManage/organization/updateOrganization',
    method: 'post',
    data
  })
}
export function deleteOrganization(params) {
  return request({
    url: '/api/organizationManage/organization/deleteOrganization',
    method: 'post',
    params
  })
}
export function addUser(data) {
  return request({
    url: '/api/organizationManage/user/addUser',
    method: 'post',
    data
  })
}
export function updateUser(data) {
  return request({
    url: '/api/organizationManage/user/updateUser',
    method: 'post',
    data
  })
}
export function getUserList(data) {
  return request({
    url: '/api/organizationManage/user/getUserList',
    method: 'post',
    data
  })
}
export function deleteUser(params) {
  return request({
    url: '/api/organizationManage/user/deleteUser',
    method: 'post',
    params
  })
}
export function getUserDetail(params) {
  return request({
    url: '/api/organizationManage/user/getUserDetail',
    method: 'post',
    params
  })
}
